﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class StockBLL : IStockBLL
    {
        private IStockDAL _stockDAL;
        public StockBLL(IStockDAL stockDAL)
        {
            _stockDAL = stockDAL;
        }

        public void Add(Stock model)
        {
            _stockDAL.Add(model);
        }
        public void Update(Stock model)
        {
            _stockDAL.Update(model);
        }
        public void Delete(int stockId)
        {
            _stockDAL.Delete(stockId);
        }
        public Stock GetModel(int stockId)
        {
            return _stockDAL.GetModel(stockId);
        }
        public DataTable Query(string strWhere)
        {
            return _stockDAL.Query(strWhere);
        }
    }
}
